package com.example.mangodb.domain;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 普发忠
 * @Date: 2021/09/27/14:15
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Document("user")
public class Student {
    @Id
    private String sid;
    private String id;
    private String name;
    private int age;
    private List<String> hobby=new ArrayList<>();
}
